
package com.zjxd.business.web.api.key;

import org.springframework.stereotype.Service;

import com.zjxd.business.web.code.MapCode;
import com.zjxd.business.web.common.ApiResult;
import com.zjxd.business.web.utils.MapUtils;

@Service
public class ApiKeyServiceImpl implements ApiKeyService {

	@Override
	public ApiResult getKey() {

		ApiKeyDto dto = new ApiKeyDto();
		dto.setKey(MapUtils.get(MapCode.PRIVATE_KEY_STR_NAME).toString());
		dto.setCreateTime((long) MapUtils.get(MapCode.RSA_KEY_CREATE_TIME));
		return ApiResult.success(dto);
	}

}
